package collectionandmap;

import java.util.HashMap;
import java.util.Map;

public class HashMapTest2 {

	/**
	 * @param args
	 * 理解错了
	 */
	public static void main(String[] args) {
		Map<Integer, Integer> map = new HashMap<>();
		System.out.println(System.currentTimeMillis());
		map.put(1, 2);
		map.put(2, 3);
		for(int i=3;i<100000;i++){
			map.put(i, i+1);
		}
		System.out.println(System.currentTimeMillis());
		Map<Integer, Integer> map2 = new HashMap<>();
		map2.put(1, 4);
		System.out.println(map2.get(1));
		System.out.println(System.currentTimeMillis());
	}

}
